package com.qf.bean;

import java.util.List;

public class AjaxMessage<T> {
    private Integer status;
    private String msg;
    private List<T> result;

    public AjaxMessage() {
    }

    public AjaxMessage(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public AjaxMessage(Integer status, String msg, List<T> result) {
        this.status = status;
        this.msg = msg;
        this.result = result;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "AjaxMessage{" +
                "status=" + status +
                ", msg='" + msg + '\'' +
                ", result=" + result +
                '}';
    }
}
